/**
*Proyecto: Autopista V.1
*SmtpAuthenticator.java
*Fecha Creacion: 30 Junio del 2013
*SWITZ Software Artists Derechos Reservados R
*/
package mx.com.switz.autopista.utils.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class SmtpAuthenticator extends Authenticator {
	/**
	*Clase que permite autenticar la cuenta de correo de donde se manda el correo
	*@author Hector Silvar SWITZ Software Artists
	*/
	private String username;
	private String password;

	public SmtpAuthenticator(String username, String password) {
		super();
		this.username = username;
		this.password = password;
	}

	public PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(username, password);
	}
}